package org.example.smartEducationBackend.controller;

import org.example.smartEducationBackend.entity.POJO.RestResult;
import org.example.smartEducationBackend.entity.POJO.UserVideoWatch;
import org.example.smartEducationBackend.service.UserVideoWatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/videoWatch")
public class UserVideoWatchController {
    @Autowired
    private UserVideoWatchService userVideoWatchService;

    @PostMapping("/update")
    public RestResult<String> update(@RequestBody UserVideoWatch userVideoWatch){
        Integer i = userVideoWatchService.update(userVideoWatch);




        return RestResult.ok("success");
    }


}
